import rxAjax from '@/assets/js/ajax.js';
//大屏图表管理 api接口
export const ScreenChartManageApi = {};

ScreenChartManageApi.baseUrl= '/api-screen/screen/core/screenChartManage';

//查询列表
ScreenChartManageApi.query=function (parameter) {
  let url= ScreenChartManageApi.baseUrl + '/query';
  return rxAjax.postJson(url,parameter).then (res => {
    return res.result
  })
}

/**
* 获取单记录
* @param pkId
* @returns {*}
*/
ScreenChartManageApi.get =function(pkId) {
  let url= ScreenChartManageApi.baseUrl + '/get?pkId=' + pkId;
  return rxAjax.get(url);
}

//保存数据
ScreenChartManageApi.save =function(parameter) {
  let url= ScreenChartManageApi.baseUrl + '/save';
  return rxAjax.postJson(url,parameter);
}

//删除数据
ScreenChartManageApi.del =function(parameter) {
  let url= ScreenChartManageApi.baseUrl + '/del';
  return rxAjax.postUrl(url,parameter);
}



export  default ScreenChartManageApi;

